package com.ruoyi.cloudcourse.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 总章节对象 feather_chapter
 * 
 * @author ruoyi
 * @date 2021-07-14
 */
public class FeatherChapter extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 章节ID */
    private Long chapterId;

    /** 父章节ID */
    private Long fatherId;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String chapterName;

    /** 章节序列 */
    private String chapterSort;

    /** 对应的课程ID */
    private Long courseId;

    /** 章节视频路径 */
    private String chapterVideo;

    /** 是否允许试看（0是 1否） */
    private String videoPreview;

    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }
    public void setFatherId(Long fatherId) 
    {
        this.fatherId = fatherId;
    }

    public Long getFatherId() 
    {
        return fatherId;
    }
    public void setChapterName(String chapterName) 
    {
        this.chapterName = chapterName;
    }

    public String getChapterName() 
    {
        return chapterName;
    }
    public void setChapterSort(String chapterSort) 
    {
        this.chapterSort = chapterSort;
    }

    public String getChapterSort() 
    {
        return chapterSort;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setChapterVideo(String chapterVideo) 
    {
        this.chapterVideo = chapterVideo;
    }

    public String getChapterVideo() 
    {
        return chapterVideo;
    }
    public void setVideoPreview(String videoPreview) 
    {
        this.videoPreview = videoPreview;
    }

    public String getVideoPreview() 
    {
        return videoPreview;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chapterId", getChapterId())
            .append("fatherId", getFatherId())
            .append("chapterName", getChapterName())
            .append("chapterSort", getChapterSort())
            .append("remark", getRemark())
            .append("courseId", getCourseId())
            .append("chapterVideo", getChapterVideo())
            .append("videoPreview", getVideoPreview())
            .toString();
    }
}
